<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>作业4</title>
	<script>
		    var num=0;
		    for(var i=1;i<=8;i++){
                var score=Number(prompt('输入您的第'+i+'成绩'));
                if (score<80) {
                	 continue;               	
                }
                    num++;
                }
		        console.log(num/8*100+'%');
	</script>
</head>
<body>
	
</body>
</html>